package com.example.myblog_ssm.mapper;

import com.example.myblog_ssm.entity.Comment;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 22479
 * Date: 2023-03-29
 * Time: 15:45
 */
@Mapper
public interface CommentMapper {

    /**
     * 发布评论
     *
     * @param comment
     * @return
     */
    int putComment(Comment comment);

    List<Comment> getComment(Integer aid);
}
